using Godot;
using System;

public partial class Hurtbox : Area2D
{
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		this.AreaEntered += Hurted;
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}
	public void Hurted(Area2D hit)
	{
		//Characters hiter = hit.Owner.Owner as Characters;
		//Characters hurter = Owner as Characters;
		//GD.Print(hiter.Name,"-hit-",Owner.Name);
		//hurter.HealthDec(hiter.CharacterData.attack);
	}
}
